package com.trkj.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.trkj.dao.jpa.IEquipRepairDao;
import com.trkj.pojos.EquipRepair;

@Service
@Transactional
public class EquipRepairService {
	@Autowired
	private IEquipRepairDao equipRepairDao;
	/**
	 * 添加申请
	 * @param repair
	 * @return
	 */
	public boolean addEquipRepair(EquipRepair repair){
		try {
			equipRepairDao.save(repair);
			return true;
		} catch (Exception e) {
			e.printStackTrace();
			return false;
		}	
	}
}